test: Monte Carlo upgrade simulation — fork-based stress test for v2.0.0#440
Draft
liorrutenberg wants to merge 6 commits intoscenario-tests-designfrom
Draft
test: Monte Carlo upgrade simulation — fork-based stress test for v2.0.0#440liorrutenberg wants to merge 6 commits intoscenario-tests-designfrom
liorrutenberg wants to merge 6 commits intoscenario-tests-designfrom
Conversation
…nnet scale * docs: add simulation design research — oracle quorum, view functions, migration, fee sync, mainnet scale Subtask-Task: research-simulation-design
…eping, weight schedule, logger * test: add simulation infrastructure — types, RNG, state discovery, bookkeeping Subtask-Task: implement-sim-infrastructure
…king, oracle actions * merge: integrate monte-carlo-simulation infrastructure, update actions to canonical types * feat: simulation action catalog — operator, cluster, migration, staking, oracle actions Subtask-Task: implement-sim-actions
* refactor: integrate canonical simulation infrastructure modules * Merge branch 'monte-carlo-simulation' into implement-sim-engine * test: add Monte Carlo simulation engine — 8 invariants, main loop, cleanup helpers Subtask-Task: implement-sim-engine
…g action registry entry * fix: add missing ssvWithdraw entry to simulation ACTION_REGISTRY Subtask-Task: implement-sim-integration
…ce, INV-3 cluster-based counting - Fix SSV token provisioning: use mint via impersonated owner instead of hardhat_setStorageAt (wrong storage slot for mainnet token) - INV-1: add proportional tolerance (0.01% of contract balance) to account for untracked mainnet state and packed-type rounding - INV-3: count validators from tracked ETH clusters instead of per-operator sums (which over-count due to multi-operator validator assignments) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Gas Usage ReportCommit: Exceeded Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Monte Carlo upgrade simulation that stress-tests the SSV Network v2.0.0 upgrade (ETH payments, effective balance accounting, SSV staking) on a mainnet fork under randomized workloads.
What it does
Architecture (16 files, ~3,600 lines)
Run results
Only reverts:
MaxRequestsAmountReached()on unstake — expected behavior.How to run
Test plan
test/simulation/)RUN_FORK=true— does not affect normal CI🤖 Generated with Claude Code